package com.graduation.rescuematerial.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.rescuematerial.pojo.HelpNews;
import com.graduation.rescuematerial.vo.HelpNewsVo;
import com.graduation.rescuematerial.vo.RespBean;
import com.graduation.rescuematerial.vo.UpdateHelpNewsVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author CaiShuangLian
 * @since 2022-04-24
 */
public interface IHelpNewsService extends IService<HelpNews> {

    /**
     * 发布新闻
     * @param helpNewsVo
     * @return
     */
    RespBean publishHelpInfo(HelpNewsVo helpNewsVo,Long phone,String companyName);

    /**
     * 新闻列表
     * @return
     */
    RespBean getAll(String type);

    /**
     * 根据companyName查询组织下的求助信息
     * @param companyName
     * @return
     */
    RespBean getByCompanyName(String companyName);



    /**
     *更新新闻状态
     * @param updateHelpNewsVo
     * @return
     */
    RespBean updateStatus(UpdateHelpNewsVo updateHelpNewsVo);

    /**
     * 模糊查询
     * @param key
     * @return
     */
    RespBean fuzzyQuery(String key);
}
